package com.bdqn.controller;

import com.bdqn.service.UsersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

@Controller
public class UsersController {
    @Autowired
    UsersService us;
    @RequestMapping("/uuservice")
    @ResponseBody
    public String get(String s){
        System.out.println("服务器");
        return us.getService(s);
    }

    @RequestMapping("/")
    @ResponseBody
    public String s(){
        return "xxxxxxx";
    }
}
